package cn.tedu.charging.device.dao.repository.impl;

import cn.tedu.charging.device.dao.mapper.StationMapper;
import cn.tedu.charging.device.dao.repository.StationRepository;
import cn.tedu.charging.device.pojo.po.StationPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public class StationRepositoryImpl implements StationRepository {
    @Autowired
    private StationMapper stationMapper;
    @Override
    public List<StationPO> selectStationList() {
        //因为是查询所有，所以不需要查询条件
        return stationMapper.selectList(null);
    }
    @Override
    public StationPO selectStationById(Integer id) {
        return stationMapper.selectById(id);
    }
}
